package com.ybzl.gateway.mapper;

import com.ybzl.gateway.domain.Fence;
import com.ybzl.gateway.domain.dto.FenceStatusDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FeneceMapper {

    int saveOrUpdate(@Param("fence") Fence fence);

    List<Fence> selectFence();

    int delByTs(Long ts);

    void insertFenceStatus(Long ts,String tagId, String fenceId,Integer way);

    FenceStatusDTO selectFenceStatus(String tagId,String fenceId);

    void saveFenceRoom(String id, String beaconId);

    String selectFenceByTs(Long ts);

    List<Long> selectFenceByFenceId(String fenceId);

    void delFenceRoomByTs(Long aLong);

    String selectFenceRoomByBeaconId(String beaconId);

    String selectFenceByFenceIdStr(String fenceId);
}
